OK. You can put your program in a subroutine and call a ridiculous amount of times. At the end of the subroutine, before the M99 (return) put M1.
With M98 the L (loop) value can be made rather large.
Turn on optional stop and the subroutine won't return and stops in an orderly manner.
This is just one of many ways to do what you want.
If you have a hardwired optional stop switch this would work OK and not even require a screen input.
Bozo could turn off the switch at lunch time, have lunch.
After lunch, turn it back on, and hit cycle start.
--- In DynoMotion@yahoogroups.com, "az@..." <az@...> wrote:
>
> Neil:
>
> Thank you for your reply but you misunderstand. I want the program to loop back and run without a cycle start but be able to stop the program gracefully so I don't have to push E stop and reinitialize the machine.
>
> AZ
>
>
>
>
Group: DynoMotion |
Message: 7318 |
From: Tom Kerekes |
Date: 4/22/2013 |
Subject: Re: Kcnc G code program looping |
Hi AZ,
Could the Operator just edit the Dwell in the Gcode?
One idea might be to add an MCode at the end of the program that would issue a Cycle Start (or maybe
a HALT, Restart, Cycle Start) conditionally based on an input bit.
See the example to have KFLOP send commands to the PC (KMotionCNC) :
KFLOPtoPCCmdExamples.c
Regards TK
| |